package com.cyf.filmDownload.common.threadPool;

import com.cyf.filmDownload.config.AppConfig;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


public class ThreadPoolConfig {

    public static ExecutorService crawlerThreadPool = Executors.newFixedThreadPool(20);

    public static ExecutorService downloadThreadPool = Executors.newFixedThreadPool(AppConfig.threadPoolSize);

    public static ExecutorService composeThreadPool = Executors.newSingleThreadExecutor();
}